/* stylelint-disable length-zero-no-unit */
@import '~antd/es/style/themes/default.less';

@var: `Math.random() `;
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  box-shadow: 0 0 0 60px #fff inset;
  -webkit-text-fill-color: #878787;
}
html,
body,
#root,
#root-master {
  height: 100%;
}
ul,
li {
  margin: 0;
  padding: 0;
  list-style: none !important;
}
img {
  display: inline-block;
}

.colorWeak {
  filter: invert(80%);
}

.ant-layout {
  min-height: 100vh;
}
.ant-pro-global-footer-links a,
.ant-pro-global-footer-copyright {
  color: inherit !important;
}
.ant-pro-sider.ant-layout-sider.ant-pro-sider-fixed {
  left: unset;
}
.ant-pro-form-login-header {
  height: auto !important;
}
.ant-pro-form-login-logo {
  width: auto !important;
  height: auto !important;
  margin-top: 24px;
  margin-bottom: 24px;
}
.ant-pro-form-login-main {
  width: 100% !important;
  min-width: 200px !important;
}
.ant-pro-form-login-container {
  background: transparent !important;
}
.logbox {
  .ant-input-affix-wrapper {
    background-color: #135ea4 !important;
    border-color: #0a81cc !important;

    input {
      color: #92e4ff;
      background-color: #135ea4 !important;
      &::-webkit-input-placeholder {
        color: #0093d8;
      }
      &:focus {
        outline: none;
        box-shadow: none !important;
      }
    }
    .ant-input-password-icon,
    .ant-input-clear-icon {
      color: #92e4ff !important;
    }
    input:-webkit-autofill,
    input:-internal-autofill-selected,
    input:-webkit-autofill:hover,
    input:-webkit-autofill:focus {
      outline: none;
      box-shadow: 0 0 0 60px #135ea4 inset !important;
      -webkit-text-fill-color: #92e4ff !important;
    }
    .anticon-eye-invisible {
      display: none !important;
    }
  }
}
.am-list-header {
  padding: 12px !important;
  background-color: #1d5685;
  border-radius: 4px;
}
.am-list-body {
  background: transparent !important;
  border: none !important;
}
.ant-pro-card {
  border: none !important;
  .ant-pro-card-body {
    padding: 12px !important;
  }
}

.fixedsearch {
  position: fixed;
  right: 0px;
  bottom: 188px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  width: 43px;
  overflow: hidden;
  .action {
    margin: 0 !important;
    margin-bottom: 12px !important;
    border-radius: 4px 0 0 4px;
  }
}
.action {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 36px;
  padding: 0 12px;
  color: #fff;
  font-size: 14px;
  letter-spacing: 2px;
  background-color: @primary-color;
  border-radius: 4px;
  cursor: pointer;
  span {
    font-size: 20px;
  }
}

.ant-drawer-header {
  color: #fff !important;
  background: #001529 !important;
  border-color: #1d5685;
  .ant-drawer-title {
    color: #fff !important;
  }
}
.ant-drawer-body {
  background: #001529 !important;
  label {
    color: #fff !important;
  }
}
.ant-drawer-header-no-title .ant-drawer-close {
  margin: 0px !important;
  padding: 24px !important;
  color: #fff !important;
}
.anticon-close {
  color: #fff !important;
}
.ant-modal-close-x,
.ant-select-selection-item-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  span {
    color: #333 !important;
  }
}
.ant-table-fixed {
  .ant-table-row-hover,
  .ant-table-row-hover > td {
    background: rgba(50, 195, 193, 0.8) !important;
  }
}
.ant-table-tbody {
  > tr:hover:not(.ant-table-expanded-row) > td,
  .ant-table-row-hover,
  .ant-table-row-hover > td {
    background: rgba(50, 195, 193, 0.4) !important;
  }
}
.ant-table-cell-fix-left,
.ant-table-cell-fix-right {
  background-color: transparent !important;
}
/* stylelint-disable-next-line no-duplicate-selectors */
table {
  * {
    border: none !important;
  }
}
.deep_gray {
  background-color: rgba(9, 18, 98, 0.5) !important;

  span,
  a {
    color: #fff !important;
  }
  .red {
    color: red !important;
  }
  .grey {
    color: rgb(170, 170, 170) !important;
  }
  .green {
    color: rgb(44, 187, 0) !important;
  }
}
.shallow_gray {
  background-color: rgba(130, 158, 193, 0.3) !important;
  span,
  a {
    color: #fff !important;
  }
  .red {
    color: red !important;
  }
  .grey {
    color: rgb(170, 170, 170) !important;
  }
  .green {
    color: rgb(44, 187, 0) !important;
  }
}

.diycard {
  height: 100%;
  border: rgba(82, 136, 198, 0.5) solid 1px;
  border-radius: 4px;
  .ant-table {
    background-color: transparent !important;
  }
  .ant-card {
    min-height: 100%;
    background-color: rgba(0, 0, 0, 0.4) !important;
  }
  .ant-table-thead {
    th {
      color: #fff;
      background-color: rgba(255, 255, 255, 0.3) !important;
    }
  }
  .ant-card-head {
    border-bottom: rgba(255, 255, 255, 0.2) solid 1px !important;
  }
  .ant-pro-table-search {
    background-color: transparent !important;
    * {
      color: #fff;
    }
  }
  .ant-pagination-total-text {
    color: #fff;
  }
  .ant-card-body {
    padding: 12px !important;
  }
  .anticon {
    color: #fff;
  }
  .ant-empty-description {
    color: #fff !important;
  }
}
@media (max-width: @screen-lg) {
  .diycard {
    border: none;
  }
}
.ant-pro-table {
  .ant-card {
    background-color: rgba(0, 0, 98, 0) !important;
  }
  .ant-card-body {
    padding: 0px !important;
  }
}
canvas {
  display: block;
}
.img {
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 100% 100%;
}
.images {
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.startcenter {
  display: flex;
  align-items: center;
}
.spacebt {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

ul,
ol {
  list-style: none;
}

@media (max-width: @screen-xs) {
  .ant-table {
    width: 100%;
    overflow-x: auto;
    &-thead > tr,
    &-tbody > tr {
      > th,
      > td {
        white-space: pre;
        > span {
          display: block;
        }
      }
    }
  }
}

// Compatible with IE11
@media screen and(-ms-high-contrast: active), (-ms-high-contrast: none) {
  body .ant-design-pro > .ant-layout {
    min-height: 100vh;
  }
}
.ant-pro-table-list-toolbar-right {
  flex: 1 !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
}
.columns {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  overflow: hidden;
  .ant-pro-table-list-toolbar-container {
    padding: 6px 4px !important;
  }
  .ant-card.diys {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 12px;
    background-color: rgba(0, 0, 0, 0.4) !important;
    border: #5288bd solid 1px;
    .ant-tabs-nav-wrap {
      padding-left: 12px;
    }
    .ant-card-head {
      min-height: 32px !important;
      padding: 0;
      color: #fff;
      border: none !important;
      .ant-card-head-title {
        padding-top: 0;
      }
    }
    .ant-card-body {
      flex: 1;
      padding: 0 !important;
      overflow: hidden !important;
    }
  }
  .ant-select-arrow {
    color: #fff;
  }
  .ant-cascader-picker,
  .ant-picker,
  .ant-select-selector {
    background-color: transparent !important;
    .ant-cascader-picker-label,
    .ant-picker-suffix,
    input {
      color: #fff !important;
    }
    span {
      color: #fff !important;
      background-color: transparent !important;
    }
  }
  table {
    span {
      color: rgba(255, 255, 255, 1);
    }
  }
}

.ant-pro-table-list-toolbar-filter {
  margin-left: 0px !important;
}
.tabitem {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100px;
  height: 108px;
  margin: 12px;
  color: #4e82b5;
  background-image: url('./assets/tp.png'), url('./assets/bt.png');
  background-repeat: no-repeat, no-repeat;
  background-position: center top, center bottom;
  background-size: contain, contain;
  cursor: pointer;
  transition: all 0.4s;
  img {
    width: 24px;
    margin-bottom: 6px;
  }
  &:hover {
    color: #0fbebc !important;
    background-image: url('./assets/tp_ac.png'), url('./assets/bt_ac.png');
  }
}

.activeitem {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100px;
  height: 108px;
  margin: 12px;
  color: #0fbebc;
  cursor: pointer;

  &::before {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('./assets/tp_ac.png'), url('./assets/bt_ac.png');
    background-repeat: no-repeat, no-repeat;
    background-position: center top, center bottom;
    background-size: contain, contain;
    animation: opacitys 1s ease-in-out 0s infinite alternate;
    content: '';
  }

  img {
    width: 24px;
    margin-bottom: 6px;
  }
}
.animateopacty {
  animation: opacityes 1s ease-in-out 0s infinite alternate;
}

@keyframes opacitys {
  0% {
    opacity: 0.1;
  }
  100% {
    opacity: 1;
  }
}
@keyframes opacityes {
  0% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

.warning {
  font-size: 30px;
  animation: opacityes 1s ease-in-out 0s infinite alternate;
}

@keyframes anis {
  0% {
    right: 34px;
  }
  100% {
    right: 44px;
  }
}

.anile {
  animation: anis 1s ease-in-out 0s infinite alternate;
}

.blur {
  position: relative;
  background-color: rgba(0, 0, 0, 0.4);
  border: rgba(82, 136, 198, 1) solid 1px;
}
.ng {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 24px 0;
  overflow: hidden;
  background-color: #1ea3fe;
  border-radius: 6px;
  span {
    color: #fff;
    b {
      font-size: 24px;
    }
  }
  &::after {
    position: absolute;
    bottom: 4vw;
    left: -2vw;
    width: 8vw;
    height: 8vw;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: moves 8s ease-in-out 0s infinite alternate;
    content: '';
  }

  &::before {
    position: absolute;
    top: 2vw;
    left: 0;
    width: 14vw;
    height: 14vw;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: move 8s ease-in-out 0s infinite alternate;
    content: '';
  }
}

@keyframes moves {
  0% {
    transform: translate(-12px, 90%);
    opacity: 1;
  }
  50% {
    transform: translate(-36px, 100%);
    opacity: 0;
  }
  100% {
    transform: translate(-12px, 90%);
    opacity: 1;
  }
}

@keyframes move {
  0% {
    transform: translate(2vw, 0.5vw);
    opacity: 1;
  }
  50% {
    transform: translate(4vw, 4vw);
    opacity: 0;
  }
  100% {
    transform: translate(2vw, 0.5vw);
    opacity: 1;
  }
}
.cur {
  position: relative;
  &::before {
    position: absolute;
    top: -12px;
    left: -8px;
    z-index: 999;
    width: 2px;
    height: 42px;
    background-color: rgba(50, 195, 193, 0.8);
    content: '';
  }
}
.header-item {
  font-size: 12px;
}
.row {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: hidden;
}
.rows {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  span {
    display: block;
  }
}
.row-item {
  font-size: 12px !important;
}
.done {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: center;
  padding: 4px 6px 6px 35px;
  overflow: hidden;
  border: #2bbda8 solid 1px;
  border-radius: 4px;
  div {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 100%;
    background-color: #2bbda8;
    border: #2bbda8 solid 1px;
  }
}
.undone {
  position: relative;
  display: flex;
  align-items: baseline;
  padding: 4px 6px 6px 35px;
  overflow: hidden;
  border: #f55139 solid 1px;
  border-radius: 4px;

  div {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 100%;
    background-color: #f55139;
    border: #f55139 solid 1px;
  }
}
.sys-header {
  display: none !important;
}
.title {
  width: 100%;
  padding-bottom: 8px;
  border-bottom: #1b4673 solid 1px;
  > span {
    padding-bottom: 9px;
    color: @primary-color;
    border-bottom: @primary-color solid 2px;
  }
  .ant-cascader-picker,
  .ant-picker,
  .ant-select-selector {
    background-color: transparent !important;
    .ant-cascader-picker-label,
    .ant-picker-suffix,
    input {
      color: #fff !important;
    }
    span {
      color: #fff !important;
      background-color: transparent !important;
    }
  }
}
.ani {
  position: relative;
  &::after {
    position: absolute;
    right: 0px;
    bottom: -8px;
    left: 0px;
    width: 20px;
    height: 2px;
    margin: auto;
    background-color: red;
    animation: warnani 2s linear 0s infinite;
    content: '';
  }
}

@keyframes warnani {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  50% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(3);
    opacity: 0;
  }
}
.amap-marker-content {
  > div {
    position: relative;
    padding-right: 2px;
    padding-left: 36px;
    font-weight: bolder;
    line-height: 36px !important;
    text-shadow: 0 0 3px #f0f0f0;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: top left !important;
    background-size: 100% 100%;
    border-radius: 0px;
    box-shadow: 0 2px 2px #999;
  }
  > div.danger {
    position: relative;
    padding-right: 2px;
    padding-left: 36px;
    font-weight: bolder;
    line-height: 36px !important;
    text-shadow: 0 0 3px #f0f0f0;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: top left !important;
    background-size: 100% 100%;
    border-radius: 0px;
    box-shadow: 0 2px 2px #999;
    &::after {
      position: absolute;
      top: -6px;
      right: -6px;
      z-index: 36;
      width: 12px;
      height: 12px;
      background-color: #ff4800;
      border-radius: 50%;
      content: '';
    }
    &::before {
      position: absolute;
      top: -6px;
      right: -6px;
      z-index: 2;
      width: 12px;
      height: 12px;
      background-color: #ff4800;
      border-radius: 50%;
      animation: warnani 2s linear 0s infinite;
      content: '';
    }
  }
}
.ant-progress-inner {
  overflow: hidden;
  border-radius: 4px !important;
  .ant-progress-success-bg,
  .ant-progress-bg {
    border-radius: 0px !important;
  }
}
.ant-pagination-item {
  a {
    color: #fff !important;
  }
}
.ant-pagination-item-active {
  a {
    color: @primary-color !important;
  }
}
.ant-modal {
  .ant-pagination-item {
    a {
      color: #000 !important;
    }
  }
  .ant-pagination-item-active {
    a {
      color: @primary-color !important;
    }
  }
}

.amap-logo {
  display: none !important; //去掉高德地图logo
}
.amap-copyright {
  opacity: 0 !important; //去掉高德的版本号
}

.cd {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-right: 4px;
  overflow: hidden;
  color: #fff;
  border-radius: 4px;
  cursor: default;
  > div.ing {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
    &::before {
      position: absolute;
      bottom: 0;
      z-index: 0;
      width: 100%;
      height: 100%;
      background-color: rgb(133, 250, 211, 0.5);
      animation: ing 1s ease-in-out 0s infinite alternate;
      content: '';
    }
  }
}

@keyframes ing {
  0% {
    height: 0;
  }
  100% {
    height: 100%;
  }
}
.dt {
  > img {
    width: 24px;
  }
  > img:nth-child(1) {
    position: absolute;
    top: 10px;
    left: 20px;
  }
  > img:nth-child(2) {
    position: absolute;
    top: 10px;
    right: 48px;
  }
  > img:nth-child(3) {
    position: absolute;
    top: 10px;
    right: 16px;
  }
  > p {
    position: absolute;
    top: 16px;
    left: 96px;
    color: rgb(0, 255, 68);
    font-size: 12px;
    text-align: center;
  }
  .textbg {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 60px;
    padding: 3px 6px;
    background-color: rgba(0, 0, 0, 0.4);
    p {
      margin: 0;
      padding: 0;
      color: #fff;
      font-size: 12px;
      text-align: center;
    }
  }
}
